package org.ehe.erp.service.quality;

import org.ehe.common.mybatis.core.page.PageQuery;
import org.ehe.common.mybatis.core.page.TableDataInfo;
import org.ehe.erp.domain.quality.bo.ErpQualityRecordBo;
import org.ehe.erp.domain.quality.dto.QualityRecordQueryDto;
import org.ehe.erp.domain.quality.vo.ErpQualityRecordVo;

import java.util.Collection;
import java.util.List;

public interface ErpQualityRecordService {
    TableDataInfo<ErpQualityRecordVo> queryPageList(QualityRecordQueryDto dto, PageQuery pageQuery);
    List<ErpQualityRecordVo> queryList(QualityRecordQueryDto dto);
    ErpQualityRecordVo queryById(Long id);
    Boolean insertByBo(ErpQualityRecordBo bo);
    Boolean updateByBo(ErpQualityRecordBo bo);
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
    List<ErpQualityRecordVo> getByTaskId(Long taskId);
    Boolean batchInsert(List<ErpQualityRecordBo> bos);

    List<ErpQualityRecordVo> queryNoCheckList(Long id);
}
